﻿
namespace Mr.HttpBodyWrapper
{
    public class PlainTextParameter : IQueryParameter
    {
        public PlainTextParameter()
            : this(string.Empty, string.Empty)
        {

        }

        public PlainTextParameter(string name, string value)
        {
            this.Value = value;
            this.Name = name;
        }

        public string Name { get; set; }

        public string Value { get; set; }

        public string ContentType
        {
            get
            {
                return "text/plain";
            }
        }

        public string ToParamString()
        {
            return Value;
        }
    }
}
